package com.bdmc.report.domain.bo;

import com.bdmc.common.core.domain.BaseSingleEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

;
/**
 * 车辆油量统计业务对象 report_car_oil
 *
 * @author bdmc
 * @date 2022-08-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ReportCarOilBo extends BaseSingleEntity {

    /**
     * 主键
     */
    private Long oilId;

    /**
     * 车辆id
     */
    private Long carId;
    
    /**
     * 车牌号
     */
    private String carNum;

    /**
     * 数据时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dataTime;

    /**
     * 当前油量
     */
    private BigDecimal carOil;

    /**
     * 油量变化
     */
    private BigDecimal oilChanged;

    /**
     * 平均油量消耗
     */
    private BigDecimal oilMean;

    private Long deptId;

}
